from multiprocessing.context import Process
from time import sleep


def func():
    for i in range(100):
        sleep(0.01)
        print("子进程", i)

if __name__ == '__main__':
    p = Process(target= func)
    p.start()

    for i in range(100):
        sleep(0.01)
        print("主进程", i)